package action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import form.LoginForm;

import struts.core.Action;
import struts.core.ActionForm;

public class LoginAction implements Action {

	@Override
	public String excute(HttpServletRequest request, ActionForm form,
			Map<String, String> map) {
		
		String url="";
		
		LoginForm loginForm=(LoginForm) form;
		
		if(loginForm.getName().equals("ws")){
			url="success";
		}else{
			url="error";
		}
		
		return map.get(url);
	}

}
